class Solution {
public:
    int singleNumber(vector<int>& nums) {
        int ret=0;
        for(auto e:nums)
        {
            ret^=e;
        }
        return ret;

    }
};
